package com.gq.tab;

import android.support.v4.app.Fragment;

import com.rtst.widget.tab.ITabHost;
import com.rtst.widget.tab.TabFragment;

public abstract class MyTab extends Fragment{
	private static final String TAG = "MyTab";
	protected TabFragment mCurTabFragment; 
	public abstract void createFirstScr();
	
	public void setCurTabFragment(TabFragment curTabFragment) {
		mCurTabFragment = curTabFragment;
	}
	
	public TabFragment getCurTabFragment() {
//		if(mCurTabFragment != null) {
//			Log.i(TAG, mCurTabFragment.getTag());
//		} else {
//			Log.i(TAG, "No screen");
//		}
		return mCurTabFragment;
	}
	
	@Override
	public void onResume() {
		super.onResume();
		((ITabHost) getActivity()).setCurTabFragment(mCurTabFragment);
	}
}
